import java.util.Scanner;
public class work {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入长方形的长");
        double a = sc.nextDouble();
        System.out.println("请输入长方形的宽");
        double b = sc.nextDouble();
        double c = a*b;
        System.out.println("请输入圆的半径");
        double r = sc.nextDouble();
        double o = 3.14;
        double d = o * (r*r);
        System.out.println("长方形的长:"+a);
        System.out.println("长方形的宽:"+b);
        System.out.println("圆的半径:"+r);
        System.out.println("长方形的面积是:"+c);
        System.out.println("圆的面积位："+d);
    }
}
